package com.ruicar.afs.cloud.apply.contract.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruicar.afs.cloud.apply.common.entity.ApplyAddPriceItems;
import com.ruicar.afs.cloud.apply.contract.mapper.ApplyAddPriceItemsMapper;
import com.ruicar.afs.cloud.apply.contract.service.ApplyAddPriceItemsService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: Lee
 * @date: 2020/5/14 10:19
 * @description:
 */
@Service
public class ApplyAddPriceItemsServiceImpl extends ServiceImpl<ApplyAddPriceItemsMapper, ApplyAddPriceItems> implements ApplyAddPriceItemsService {

    /**
     * 通过申请编号获取成交价列表
     * @param applyNo
     * @return
     */
    public List<ApplyAddPriceItems> getAddPriceItemsList(String applyNo){

        List<ApplyAddPriceItems> list = this.baseMapper.selectList(Wrappers.<ApplyAddPriceItems>query().lambda().eq(ApplyAddPriceItems::getApplyNo, applyNo));
        return list;
    }
}
